package com.lagou.task10;
/*
  属性 姓名name 工号id  工资salary
  行为：工作work()
  程序员类 Coder
* */

public class Coder {
    private String name;
    private int salary;
    private int id;

    //无参构造方法
    public Coder() {
    }
    //有参构造方法
    public Coder(String name, int salary,int id) {
        this.name = name;
        this.salary = salary;
        this.id = id;
    }
   //
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    public void work(){
        System.out.println("工号为：" + id +",基本工资为："+ salary +
                "的程序员" + name + "正在努力的写着代码...操作步骤描述...");
    }
    public void work(int id ,int salary,String name){
        System.out.println("工号为：" + id +",基本工资为："+ salary +
                "的程序员" + name + "正在努力的写着代码...操作步骤描述...");


    }
}
